<!DOCTYPE html>

<!------------------------------
Site Name: ytcms
Developed By: hillsdong@163.com
Date Created: 2013-11-29
Last Updated:
Copyright: yantukeji.com
-------------------------------->

<html lang="zh-CN">
<head>
	<title><{$cms_title}>后台管理</title>	
	<!--CSS-->
	<link rel="stylesheet" type="text/css" href="tpl/css/bootstrap.min.css" />
	<link rel="stylesheet" type="text/css" href="tpl/css/bootstrap-theme.min.css" />
	<link rel="stylesheet" type="text/css" href="tpl/css/ytcms.css" />
	<!--Character Encoding-->
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<!--For phone or pad-->
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
        <script src="http://cdn.bootcss.com/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
    <!--javascript-->
	<script type="text/javascript" src="tpl/js/jquery-1.10.2.min.js"></script>
	<script type="text/javascript" src="tpl/js/bootstrap.min.js"></script>
</head>
<body>
<{if $content_only != "1"}>
	<!--Main Container - Centers Everything-->
	<div id="ytadmin_main_container">		
		<!--Header-->
		<header class="navbar navbar-default navbar-fixd-top ytadmin-nav" role="banner">
			<div class="navbar-header">
				<strong><a href="index.php" class="navbar-brand">
				
					<{$cms_title}>
				</a></strong>
			</div>
			<nav class="navbar-collapse ytadmin-nav-collapse" role="navigation">
				<ul class="nav navbar-nav">
					<!--
					<li class="<{if $nav_name == 'comment'}>active<{/if}>">
						<a href="<{spUrl c=comment module=feedback moudule_id=0}>">
						<span class="glyphicon glyphicon-list-alt"></span> 留言
						</a>
					</li>
					-->
					<li class="<{if $nav_name == 'check'}>active<{/if}>">
						<a href="<{spUrl c=check a=index }>">
						<span class="glyphicon glyphicon-list-alt"></span> 验证
						</a>
					</li>


					<li class="divider-vertical"></li>
					<{foreach item=nav_one from=$nav_result}>

					<li class="<{if $nav_name == 'nav' && $cat_id == $nav_one['id'] }>active<{/if}>">
						<a href="<{spUrl c=nav a=index cat_id=$nav_one['id'] url_id = $nav_one['cat_url_first']['id']}>">
						<span class="glyphicon glyphicon-tasks"></span> <{$nav_one['name']}>
						</a>
					</li>
					<{/foreach}>
					
					<{if $smarty.session.POWER==1 || $smarty.session.POWER == 3}>
					<li class="divider-vertical"></li>
					<li class="<{if $nav_name == 'setting'}>active<{/if}>">
						<a href="<{spUrl c=setting}>">
							<span class="glyphicon glyphicon-cog"></span> 设置
						</a>
					</li>
					<li class="<{if $nav_name == 'tools'}>active<{/if}>">
						<a href="<{spUrl c=tools}>">
							<span class="glyphicon glyphicon-wrench"></span> 工具
						</a>
					</li>
					<{/if}>


				</ul>
				<{if $smarty.session.POWER == 3}>
  				<ul class="nav navbar-nav">
  					<li class="divider-vertical"></li>
			        <li class="dropdown">
			          <a href="#" class="dropdown-toggle" data-toggle="dropdown">
			          	<span class="glyphicon glyphicon-tower"></span> 建站<span class="caret"></span>
			          </a>
			          <ul class="dropdown-menu" role="menu">
						<li class="<{if $nav_name == 'article'}>active<{/if}>"><a href="<{spUrl c=article}>">文章</a></li>
						<li class="<{if $nav_name == 'picture'}>active<{/if}>"><a href="<{spUrl c=picture}>">相册</a></li>
						<li class="<{if $nav_name == 'page'}>active<{/if}>"><a href="<{spUrl c=page}>">专题</a></li>
						<li class="<{if $nav_name == 'url'}>active<{/if}>"><a href="<{spUrl c=url}>">链接</a></li>
						<li class="<{if $nav_name == 'comment'}>active<{/if}>"><a href="<{spUrl c=comment}>">留言</a></li>
						<li class="<{if $nav_name == 'category'}>active<{/if}>"><a href="<{spUrl c=category}>">分类</a></li>
			          </ul>
			        </li>
			    </ul>
			   	<{/if}>
				<ul class="nav navbar-nav navbar-right">
					<li class=""><a target="blank" href="/<{$url}>/../index.php">
					<span class="glyphicon glyphicon-gift"></span> 查看前台</a></li>				
					<li class="dropdown">
				        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
				        	<span class="glyphicon glyphicon-user"></span>
				        	<{$smarty.session.USER}>
				        	<b class="caret"></b>
				        </a>
				        <ul class="dropdown-menu">
				          <li><a href="<{spUrl c=main a=log_out need_login=1}>">注销</a></li>
				          <li><a href="<{spUrl c=main a=log_out}>">退出</a></li>
				        </ul>
				    </li>
				</ul>
			</nav>
		</header>
		<!--Main Content-->
		<div id="ytadmin_main_content">
			<div id="ytadmin-position" class="clearfix">
				<div id="ytadmin-position-title"><{$page_title}></div>
				<ol class="breadcrumb">
				<{foreach item=item from=$breadcrumb}>
					<{if $item['url']}>
						<li><a href="<{$item['url']}>"><{$item['name']}></a></li>
					<{else}>
				  		<li class="active"><{$item['name']}></li>
				  	<{/if}>
				<{/foreach}>
				</ol>
			</div>
			<div id="ytadmin-left">
				<ul class="nav nav-pills nav-stacked">
				<{foreach item=item from=$left_nav_result}>
					<li class="<{if $item['id']==$left_nav_id}>active<{/if}>">	
						<a title="<{$item['name']}>"  href="<{$item['url']}>"><{$item['list_tab']}> <{$item['name']}> </a>
					</li>
				<{/foreach}>				
				</ul>
			</div>
			<!--ytadmin-main-->
			<div id="ytadmin-main" style="min-height:700px;">
				<{if $notice}>
					<div class="alert alert-<{$notice[0]}>"><{$notice[1]}></div>
				<{/if}>
<{/if}>
